-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed binding of command line flags #1129
Fixed binding of command line flags #1129
Conversation
This can be reproduced by running $ make run-debug
INFO[0000] Versions arch=amd64 identity=default.jaeger-operator jaeger=1.18.1 jaeger-operator=v1.18.1-10-g11a063f9 operator-sdk=v0.15.1 os=linux version=go1.14.3
INFO[0000] Auto-detected the platform platform=kubernetes
INFO[0000] Auto-detected ingress api ingress-api=networking
INFO[0000] Automatically adjusted the 'es-provision' flag es-provision=no
INFO[0000] Automatically adjusted the 'kafka-provision' flag kafka-provision=no
INFO[0000] The service account running this operator has the role 'system:auth-delegator', enabling OAuth Proxy's 'delegate-urls' option
INFO[0001] Install prometheus-operator in your cluster to create ServiceMonitor objects error="no ServiceMonitor registered with the API"
WARN[0002] failed to setup the Jaeger exporter error="write udp 127.0.0.1:47051->127.0.0.1:6831: write: connection refused"
^CFATA[0004] <nil>
exit status 1 After this PR, there's one $ make run-debug
INFO[0000] Versions arch=amd64 identity=default.jaeger-operator jaeger=1.18.1 jaeger-operator=v1.18.1-11-g9e5a0cd2 operator-sdk=v0.15.1 os=linux version=go1.14.3
INFO[0000] Auto-detected the platform platform=kubernetes
INFO[0000] Auto-detected ingress api ingress-api=networking
INFO[0000] Automatically adjusted the 'es-provision' flag es-provision=no
INFO[0000] Automatically adjusted the 'kafka-provision' flag kafka-provision=no
INFO[0000] The service account running this operator has the role 'system:auth-delegator', enabling OAuth Proxy's 'delegate-urls' option
INFO[0001] Install prometheus-operator in your cluster to create ServiceMonitor objects error="no ServiceMonitor registered with the API"
DEBU[0001] Not running on OpenShift, so won't configure OAuthProxy imagestream.
WARN[0002] failed to setup the Jaeger exporter error="write udp 127.0.0.1:35449->127.0.0.1:6831: write: connection refused"
^CFATA[0002] <nil>
exit status 1 This can also be easily reproduced/verified by setting |
@chlunde, would you like to review this one as well? |
Fixes jaegertracing#1128 Signed-off-by: Juraci Paixão Kröhling <[email protected]>
852a39c
to
aa5c4b1
Compare
Codecov Report
@@ Coverage Diff @@
## master #1129 +/- ##
=======================================
Coverage 88.22% 88.22%
=======================================
Files 86 86
Lines 5350 5351 +1
=======================================
+ Hits 4720 4721 +1
Misses 466 466
Partials 164 164
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. This fixes the problem I had with it ignoring kafka-provisioning-minimal
Fixes #1128 by binding the flags to Viper as part of the command execution, not during the building of the
Command
object.Signed-off-by: Juraci Paixão Kröhling [email protected]